<%@page import="Helpers.ApplicationLogger"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<link type="text/css" rel="stylesheet" href="Css/feedback.css">
<script type="text/javascript" src="Scripts/MoviesManipulate.js"></script>

<div id="addMovieForm">
	<table>
		<tr>
			<td><h1>Название</h1></td>
			<td><input id="NewMovieName" name="NewMovieName" type="text"
				size="20"></td>
		</tr>
		<tr>
			<td><h1>Жанр(ы) (через запятую)</h1></td>
			<td><input id="NewMovieGenres" name="NewMovieGenres" type="text"
				size="100"></td>
		</tr>
		<tr>
			<td><h1>В главных ролях (через запятую)</h1></td>
			<td><input id="NewMovieActors" name="NewMovieActors" type="text"
				size="100"></td>
		</tr>
		<tr>
			<td><h1>Описание</h1></td>
			<td><input id="NewMovieDescription" name="NewMovieDescription"
				type="text" size="100"></td>
		</tr>
		<tr>
			<td><h1>Рейтинг (сайта)</h1></td>
			<td><input id="NewMovieRating" name="NewMovieRating" type="text"
				size="20" value="0"></td>
		</tr>
		<tr>
			<td><h1>Рейтинг (IMDB)</h1></td>
			<td><input id="NewMovieRatingIMDB" name="NewMovieRatingIMDB"
				type="text" size="20" value="0"></td>
		</tr>
		<tr>
			<td><h1>Рейтинг (MPAA)</h1></td>
			<td>
				<input type="radio" id = "NewMovieRatingMPAA" name="NewMovieRatingMPAA" value="G" checked="checked"> </h1>G</h1><Br>
				<input type="radio" id = "NewMovieRatingMPAA" name="NewMovieRatingMPAA" value="PG"> </h1>PG</h1><Br>
				<input type="radio" id = "NewMovieRatingMPAA" name="NewMovieRatingMPAA" value="PG_13"> </h1>PG 13</h1><Br>
				<input type="radio" id = "NewMovieRatingMPAA" name="NewMovieRatingMPAA" value="R"> </h1>R</h1><Br>
				<input type="radio" id = "NewMovieRatingMPAA" name="NewMovieRatingMPAA" value="NC_17"> </h1>NC_17</h1><Br>
			</td>
		</tr>
		<tr>
			<td><h1>Прибыль от:</h1></td>
			<td>
				<input id="NewMovieProfitInRussia" name="NewMovieProfitInRussia" type="text"
				size="10" value="0">проката в России (млн. руб.)<br>
				<input id="NewMovieProfitInUSA" name="NewMovieProfitInUSA" type="text"
				size="10" value="0">проката в США (млн. руб.)<br>
				<input id="NewMovieProfitInEurope" name="NewMovieProfitInEurope" type="text"
				size="10" value="0">проката в Европе (млн. руб.)<br>
				<input id="NewMovieProfitInOtherCountries" name="NewMovieProfitInOtherCountries" type="text"
				size="10" value="0">проката в других странах (млн. руб.)<br>
				<input id="NewMovieProfitFromTV" name="NewMovieProfitFromTV" type="text"
				size="10" value="0">показов по ТВ (млн. руб.)<br>
				<input id="NewMovieProfitFromDVD" name="NewMovieProfitFromDVD" type="text"
				size="10" value="0">продаж DVD (млн. руб.)<br>
			</td>
		</tr>
		<tr>
			<td><h1>Обложка</h1></td>
			<td><input id="NewMovieCover" name="NewMovieCover" type="text"
				size="20"></td>
		</tr>
	</table>
</div>

<%
	if ("addMov".equalsIgnoreCase(request.getParameter("target"))) {
%>
<input type="button" value="Добавить"
	onclick="MovieEditor.AddOne($('#NewMovieProfitInRussia').val(), $('#NewMovieGenres').val(), $('#NewMovieActors').val(), $('#NewMovieProfitInUSA').val(), $('#NewMovieProfitInEurope').val(), $('#NewMovieProfitInOtherCountries').val(), $('#NewMovieProfitFromTV').val(), $('#NewMovieProfitFromDVD').val(), $('#NewMovieName').val(), $('#NewMovieDescription').val(), $('#NewMovieRating').val(), $('#NewMovieRatingIMDB').val(), $(':radio[name=NewMovieRatingMPAA]').filter(':checked').val(), $('#NewMovieCover').val());">
<%
	}
%>
	<input type="button" value="Назад" onclick="NavigationManager.GoTo('general')">